﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="DataVisuals.aspx.vb" Inherits="TheNewDesigner.DataVisuals" %>
<%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
    <br />
        A graph that displays how much a designer is liked</p>
<p>
    <asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSource1">
        <series>
            <asp:Series Name="Series1" XValueMember="DesignerID" YValueMembers="CountOfID" 
                YValuesPerPoint="2">
            </asp:Series>
        </series>
        <chartareas>
            <asp:ChartArea Name="ChartArea1">
            </asp:ChartArea>
        </chartareas>
    </asp:Chart>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:DesignerConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:DesignerConnectionString.ProviderName %>" 
        SelectCommand="SELECT [DesignerID], [CountOfID] FROM [CountLikes] WHERE ([CountOfID] &gt; ?) ORDER BY [CountOfID] DESC">
        <SelectParameters>
            <asp:Parameter DefaultValue="0" Name="CountOfID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</p>
<p>
</p>
</asp:Content>
